const axios = require("axios");
const getToken = async () => {
    try{
        const data = await axios({
            method: 'post',
            url: 'https://accounts.paxful.com/oauth2/token',
            data: {
                client_id: 'CEXIwWaWNt90xBRj5bPvGAgrNcZo8D2cfsNsTZhYUxx6eHQM',
                client_secret: 'GsLJpVJdMXyf3C9eJgrdhgJxnP1H7uO6IpOOfvoeekZm3Zo1',
                grant_type: 'client_credentials',
            },
        })
        return data
    }catch(e){
        console.log(e)
    }
}

module.exports = getToken